import { axios } from '@/utils/request'

/**
 * 获取用户列表
 *
 * @author yubaoshan
 * @date 2020/4/26 12:08
 */
 export function getStudentList () {
  return axios({
    url: '/sysStudent/list',
    method: 'get'
  })
}

/**
 * 获取用户列表
 *
 * @author yubaoshan
 * @date 2020/4/26 12:08
 */
export function getStudentPage (parameter) {
  return axios({
    url: '/sysStudent/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 增加用户
 *
 * @author yubaoshan
 * @date 2020/5/5 02:08
 */
export function sysStudentAdd (parameter) {
  return axios({
    url: '/sysStudent/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑用户
 *
 * @author yubaoshan
 * @date 2020/5/5 02:08
 */
export function sysStudentEdit (parameter) {
  return axios({
    url: '/sysStudent/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除用户
 *
 * @author yubaoshan
 * @date 2020/5/7 19:31
 */
export function sysStudentDelete (parameter) {
  return axios({
    url: '/sysStudent/delete',
    method: 'delete',
    data: parameter
  })
}
